package com.wyzz.hr.util;

import java.math.BigDecimal;
import org.apache.commons.lang.StringUtils;

import com.wyzz.hr.pojo.Attendmonthly;

public class ExaminVarDef {

	public ExaminVarDef(Attendmonthly attendmonthly) {
		C1 = Double.valueOf(0.0D);
		C2 = Double.valueOf(0.0D);
		C3 = Double.valueOf(0.0D);
		C6 = Double.valueOf(0.0D);
		C7 = Double.valueOf(0.0D);
		C8 = Double.valueOf(0.0D);
		C11 = Double.valueOf(0.0D);
		C12 = Double.valueOf(0.0D);
		C13 = Double.valueOf(0.0D);
		C20 = Double.valueOf(0.0D);
		C21 = Double.valueOf(0.0D);
		C22 = Double.valueOf(0.0D);
		C23 = Double.valueOf(0.0D);
		C30 = Double.valueOf(0.0D);
		C31 = Double.valueOf(0.0D);
		C32 = Double.valueOf(0.0D);
		C33 = Double.valueOf(0.0D);
		C34 = Double.valueOf(0.0D);
		C35 = Double.valueOf(0.0D);
		C36 = Double.valueOf(0.0D);
		C37 = Double.valueOf(0.0D);
		C38 = Double.valueOf(0.0D);
		C39 = Double.valueOf(0.0D);
		C40 = Double.valueOf(0.0D);
		C41 = Double.valueOf(0.0D);
		C42 = Double.valueOf(0.0D);
		C50 = Double.valueOf(0.0D);
		C51 = Double.valueOf(0.0D);
		C52 = Double.valueOf(0.0D);
		C53 = Double.valueOf(0.0D);
		C54 = Double.valueOf(0.0D);
		C55 = Double.valueOf(0.0D);
		C56 = Double.valueOf(0.0D);
		C57 = Double.valueOf(0.0D);
		C58 = Double.valueOf(0.0D);
		C59 = Double.valueOf(0.0D);
		C60 = Double.valueOf(0.0D);
		C61 = Double.valueOf(0.0D);
		C62 = Double.valueOf(0.0D);
		C71 = Double.valueOf(0.0D);
		C72 = Double.valueOf(0.0D);
		C73 = Double.valueOf(0.0D);
		C74 = Double.valueOf(0.0D);
		C75 = Double.valueOf(0.0D);
		C76 = Double.valueOf(0.0D);
		C77 = Double.valueOf(0.0D);
		C78 = Double.valueOf(0.0D);
		C79 = Double.valueOf(0.0D);
		C80 = Double.valueOf(0.0D);
		C81 = Double.valueOf(0.0D);
		C82 = Double.valueOf(0.0D);
		C83 = Double.valueOf(0.0D);
		C84 = Double.valueOf(0.0D);
		C85 = Double.valueOf(0.0D);
		C86 = Double.valueOf(0.0D);
		C87 = Double.valueOf(0.0D);
		C88 = Double.valueOf(0.0D);
		C89 = Double.valueOf(0.0D);
		C90 = Double.valueOf(0.0D);
		C91 = Double.valueOf(0.0D);
		C92 = Double.valueOf(0.0D);
		C93 = Double.valueOf(0.0D);
		C94 = Double.valueOf(0.0D);
		if (attendmonthly == null) {
			return;
		} else {
			C1 = getDoubleValue(attendmonthly.getAttmDutyDays());
			C2 = getDoubleValue(attendmonthly.getAttmOnDutyDays());
			C3 = getDoubleValue(attendmonthly.getAttmOffDutyDays());
			C6 = getDoubleValue(attendmonthly.getAttmDutyHours());
			C7 = getDoubleValue(attendmonthly.getAttmOnDutyHours());
			C8 = getDoubleValue(attendmonthly.getAttmOffDutyHours());
			C11 = getDoubleValue(attendmonthly.getAttmLateTimes());
			C12 = getDoubleValue(attendmonthly.getAttmEarlyLeave());
			C13 = getDoubleValue(attendmonthly.getAttmAbsentDays());
			C20 = getDoubleValue(attendmonthly.getAttmOvertimeHours());
			C21 = getDoubleValue(attendmonthly.getAttmOtNormalHours());
			C22 = getDoubleValue(attendmonthly.getAttmOtWeekendHours());
			C23 = getDoubleValue(attendmonthly.getAttmOtHolidayHours());
			C30 = getDoubleValue(attendmonthly.getAttmLeaveDays());
			C31 = getDoubleValue(attendmonthly.getAttmLeaveAnnualDays());
			C32 = getDoubleValue(attendmonthly.getAttmLeaveCasualDays());
			C33 = getDoubleValue(attendmonthly.getAttmLeaveSickDays());
			C34 = getDoubleValue(attendmonthly.getAttmLeaveSick01Days());
			C35 = getDoubleValue(attendmonthly.getAttmLeaveWeddingDays());
			C36 = getDoubleValue(attendmonthly.getAttmLeaveMaternityDays());
			C37 = getDoubleValue(attendmonthly.getAttmLeaveTravelDays());
			C38 = getDoubleValue(attendmonthly.getAttmLeaveOuterDays());
			C39 = getDoubleValue(attendmonthly.getAttmLeaveTiaoxiuDays());
			C40 = getDoubleValue(attendmonthly.getAttmLeaveOtherDays());
			C41 = getDoubleValue(attendmonthly.getAttmLeaveTiaoxiu01Days());
			C42 = getDoubleValue(attendmonthly.getAttmLeaveSick02Days());
			C50 = getDoubleValue(attendmonthly.getAttmLeaveHours());
			C51 = getDoubleValue(attendmonthly.getAttmLeaveAnnualHours());
			C52 = getDoubleValue(attendmonthly.getAttmLeaveCasualHours());
			C53 = getDoubleValue(attendmonthly.getAttmLeaveSickHours());
			C54 = getDoubleValue(attendmonthly.getAttmLeaveSick01Hours());
			C55 = getDoubleValue(attendmonthly.getAttmLeaveWeddingHours());
			C56 = getDoubleValue(attendmonthly.getAttmLeaveMaternityHours());
			C57 = getDoubleValue(attendmonthly.getAttmLeaveTravelHours());
			C58 = getDoubleValue(attendmonthly.getAttmLeaveOuterHours());
			C59 = getDoubleValue(attendmonthly.getAttmLeaveTiaoxiuHours());
			C60 = getDoubleValue(attendmonthly.getAttmLeaveOtherHours());
			C61 = getDoubleValue(attendmonthly.getAttmLeaveTiaoxiu01Hours());
			C62 = getDoubleValue(attendmonthly.getAttmLeaveSick02Hours());
			C71 = getDoubleValue(attendmonthly.getAttmField01());
			C72 = getDoubleValue(attendmonthly.getAttmField02());
			C73 = getDoubleValue(attendmonthly.getAttmField03());
			C74 = getDoubleValue(attendmonthly.getAttmField04());
			C75 = getDoubleValue(attendmonthly.getAttmField05());
			C76 = getDoubleValue(attendmonthly.getAttmField06());
			C77 = getDoubleValue(attendmonthly.getAttmField07());
			C78 = getDoubleValue(attendmonthly.getAttmField08());
			C79 = getDoubleValue(attendmonthly.getAttmField09());
			C80 = getDoubleValue(attendmonthly.getAttmField10());
			C81 = getDoubleValue(attendmonthly.getAttmField11());
			C82 = getDoubleValue(attendmonthly.getAttmField12());
			C83 = getDoubleValue(attendmonthly.getAttmField13());
			C84 = getDoubleValue(attendmonthly.getAttmField14());
			C85 = getDoubleValue(attendmonthly.getAttmField15());
			C86 = getDoubleValue(attendmonthly.getAttmField16());
			C87 = getDoubleValue(attendmonthly.getAttmField17());
			C88 = getDoubleValue(attendmonthly.getAttmField18());
			C89 = getDoubleValue(attendmonthly.getAttmField19());
			C90 = getDoubleValue(attendmonthly.getAttmField20());
			C91 = getDoubleValue(attendmonthly.getAttmField21());
			C92 = getDoubleValue(attendmonthly.getAttmField22());
			C93 = getDoubleValue(attendmonthly.getAttmField23());
			C94 = getDoubleValue(attendmonthly.getAttmField24());
			return;
		}
	}

	private Double getDoubleValue(String str) {
		if (StringUtils.isEmpty(str))
			return Double.valueOf(0.0D);
		try {
			return Double.valueOf(str);
		} catch (NumberFormatException e) {
			return Double.valueOf(0.0D);
		}
	}

	private Double getDoubleValue(BigDecimal decimalNum) {
		return Double.valueOf(decimalNum != null ? decimalNum.doubleValue()
				: 0.0D);
	}

	public Double getC1() {
		return C1;
	}

	public void setC1(Double c1) {
		C1 = c1;
	}

	public Double getC2() {
		return C2;
	}

	public void setC2(Double c2) {
		C2 = c2;
	}

	public Double getC3() {
		return C3;
	}

	public void setC3(Double c3) {
		C3 = c3;
	}

	public Double getC6() {
		return C6;
	}

	public void setC6(Double c6) {
		C6 = c6;
	}

	public Double getC7() {
		return C7;
	}

	public void setC7(Double c7) {
		C7 = c7;
	}

	public Double getC8() {
		return C8;
	}

	public void setC8(Double c8) {
		C8 = c8;
	}

	public Double getC11() {
		return C11;
	}

	public void setC11(Double c11) {
		C11 = c11;
	}

	public Double getC12() {
		return C12;
	}

	public void setC12(Double c12) {
		C12 = c12;
	}

	public Double getC13() {
		return C13;
	}

	public void setC13(Double c13) {
		C13 = c13;
	}

	public Double getC20() {
		return C20;
	}

	public void setC20(Double c20) {
		C20 = c20;
	}

	public Double getC21() {
		return C21;
	}

	public void setC21(Double c21) {
		C21 = c21;
	}

	public Double getC22() {
		return C22;
	}

	public void setC22(Double c22) {
		C22 = c22;
	}

	public Double getC23() {
		return C23;
	}

	public void setC23(Double c23) {
		C23 = c23;
	}

	public Double getC30() {
		return C30;
	}

	public void setC30(Double c30) {
		C30 = c30;
	}

	public Double getC31() {
		return C31;
	}

	public void setC31(Double c31) {
		C31 = c31;
	}

	public Double getC32() {
		return C32;
	}

	public void setC32(Double c32) {
		C32 = c32;
	}

	public Double getC33() {
		return C33;
	}

	public void setC33(Double c33) {
		C33 = c33;
	}

	public Double getC34() {
		return C34;
	}

	public void setC34(Double c34) {
		C34 = c34;
	}

	public Double getC35() {
		return C35;
	}

	public void setC35(Double c35) {
		C35 = c35;
	}

	public Double getC36() {
		return C36;
	}

	public void setC36(Double c36) {
		C36 = c36;
	}

	public Double getC37() {
		return C37;
	}

	public void setC37(Double c37) {
		C37 = c37;
	}

	public Double getC38() {
		return C38;
	}

	public void setC38(Double c38) {
		C38 = c38;
	}

	public Double getC39() {
		return C39;
	}

	public void setC39(Double c39) {
		C39 = c39;
	}

	public Double getC40() {
		return C40;
	}

	public void setC40(Double c40) {
		C40 = c40;
	}

	public Double getC41() {
		return C41;
	}

	public void setC41(Double c41) {
		C41 = c41;
	}

	public Double getC42() {
		return C42;
	}

	public void setC42(Double c42) {
		C42 = c42;
	}

	public Double getC50() {
		return C50;
	}

	public void setC50(Double c50) {
		C50 = c50;
	}

	public Double getC51() {
		return C51;
	}

	public void setC51(Double c51) {
		C51 = c51;
	}

	public Double getC52() {
		return C52;
	}

	public void setC52(Double c52) {
		C52 = c52;
	}

	public Double getC53() {
		return C53;
	}

	public void setC53(Double c53) {
		C53 = c53;
	}

	public Double getC54() {
		return C54;
	}

	public void setC54(Double c54) {
		C54 = c54;
	}

	public Double getC55() {
		return C55;
	}

	public void setC55(Double c55) {
		C55 = c55;
	}

	public Double getC56() {
		return C56;
	}

	public void setC56(Double c56) {
		C56 = c56;
	}

	public Double getC57() {
		return C57;
	}

	public void setC57(Double c57) {
		C57 = c57;
	}

	public Double getC58() {
		return C58;
	}

	public void setC58(Double c58) {
		C58 = c58;
	}

	public Double getC59() {
		return C59;
	}

	public void setC59(Double c59) {
		C59 = c59;
	}

	public Double getC60() {
		return C60;
	}

	public void setC60(Double c60) {
		C60 = c60;
	}

	public Double getC61() {
		return C61;
	}

	public void setC61(Double c61) {
		C61 = c61;
	}

	public Double getC62() {
		return C62;
	}

	public void setC62(Double c62) {
		C62 = c62;
	}

	public Double getC71() {
		return C71;
	}

	public void setC71(Double c71) {
		C71 = c71;
	}

	public Double getC72() {
		return C72;
	}

	public void setC72(Double c72) {
		C72 = c72;
	}

	public Double getC73() {
		return C73;
	}

	public void setC73(Double c73) {
		C73 = c73;
	}

	public Double getC74() {
		return C74;
	}

	public void setC74(Double c74) {
		C74 = c74;
	}

	public Double getC75() {
		return C75;
	}

	public void setC75(Double c75) {
		C75 = c75;
	}

	public Double getC76() {
		return C76;
	}

	public void setC76(Double c76) {
		C76 = c76;
	}

	public Double getC77() {
		return C77;
	}

	public void setC77(Double c77) {
		C77 = c77;
	}

	public Double getC78() {
		return C78;
	}

	public void setC78(Double c78) {
		C78 = c78;
	}

	public Double getC79() {
		return C79;
	}

	public void setC79(Double c79) {
		C79 = c79;
	}

	public Double getC80() {
		return C80;
	}

	public void setC80(Double c80) {
		C80 = c80;
	}

	public Double getC81() {
		return C81;
	}

	public void setC81(Double c81) {
		C81 = c81;
	}

	public Double getC82() {
		return C82;
	}

	public void setC82(Double c82) {
		C82 = c82;
	}

	public Double getC83() {
		return C83;
	}

	public void setC83(Double c83) {
		C83 = c83;
	}

	public Double getC84() {
		return C84;
	}

	public void setC84(Double c84) {
		C84 = c84;
	}

	public Double getC85() {
		return C85;
	}

	public void setC85(Double c85) {
		C85 = c85;
	}

	public Double getC86() {
		return C86;
	}

	public void setC86(Double c86) {
		C86 = c86;
	}

	public Object getC87() {
		return C87;
	}

	public void setC87(Object c87) {
		C87 = c87;
	}

	public Double getC88() {
		return C88;
	}

	public void setC88(Double c88) {
		C88 = c88;
	}

	public Double getC89() {
		return C89;
	}

	public void setC89(Double c89) {
		C89 = c89;
	}

	public Double getC90() {
		return C90;
	}

	public void setC90(Double c90) {
		C90 = c90;
	}

	public Double getC91() {
		return C91;
	}

	public void setC91(Double c91) {
		C91 = c91;
	}

	public Double getC92() {
		return C92;
	}

	public void setC92(Double c92) {
		C92 = c92;
	}

	public Double getC93() {
		return C93;
	}

	public void setC93(Double c93) {
		C93 = c93;
	}

	public Double getC94() {
		return C94;
	}

	public void setC94(Double c94) {
		C94 = c94;
	}

	private Double C1;
	private Double C2;
	private Double C3;
	private Double C6;
	private Double C7;
	private Double C8;
	private Double C11;
	private Double C12;
	private Double C13;
	private Double C20;
	private Double C21;
	private Double C22;
	private Double C23;
	private Double C30;
	private Double C31;
	private Double C32;
	private Double C33;
	private Double C34;
	private Double C35;
	private Double C36;
	private Double C37;
	private Double C38;
	private Double C39;
	private Double C40;
	private Double C41;
	private Double C42;
	private Double C50;
	private Double C51;
	private Double C52;
	private Double C53;
	private Double C54;
	private Double C55;
	private Double C56;
	private Double C57;
	private Double C58;
	private Double C59;
	private Double C60;
	private Double C61;
	private Double C62;
	private Double C71;
	private Double C72;
	private Double C73;
	private Double C74;
	private Double C75;
	private Double C76;
	private Double C77;
	private Double C78;
	private Double C79;
	private Double C80;
	private Double C81;
	private Double C82;
	private Double C83;
	private Double C84;
	private Double C85;
	private Double C86;
	private Object C87;
	private Double C88;
	private Double C89;
	private Double C90;
	private Double C91;
	private Double C92;
	private Double C93;
	private Double C94;
}
